home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / imake / RCS / Project.tmpl,v < prev    next >
Encoding:
Text File  |  1992-08-20  |  21.8 KB  |  840 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.2
  10. date     92.08.20.16.58.30;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     91.10.22.13.47.32;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @checking in for rab -- jhh
  27. @
  28. text
  29. @XCOMM -------------------------------------------------------------------------
  30. XCOMM X Window System Build Parameters
  31. XCOMM $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  32.  
  33. /*****************************************************************************
  34.  *                                                                           *
  35.  *                            DEFAULT DEFINITONS                             *
  36.  *                                                                           *
  37.  * The following section contains defaults for things that can be overridden *
  38.  * in the various *.cf and site.def files.  DO NOT EDIT!                     *
  39.  *                                                                           *
  40.  ****************************************************************************/
  41.  
  42. #define ProjectX        5    /* do *not* change this line */
  43.  
  44. /*
  45.  * X-specific things
  46.  */
  47. #ifndef BuildServer
  48.   #define BuildServer        YES
  49. #endif
  50. #ifndef BuildFonts
  51.   #define BuildFonts        BuildServer
  52. #endif
  53. #ifndef BuildFontServer
  54.   #define BuildFontServer        BuildServer
  55. #endif
  56. #ifndef BuildPex
  57.   #define BuildPex        YES
  58. #endif
  59. #ifndef BuildPexClients
  60.   #define BuildPexClients        BuildPex
  61. #endif
  62. #ifndef BuildPexExt
  63.   #if BuildServer
  64.     #define BuildPexExt        BuildPex
  65.   #else
  66.     #define BuildPexExt        NO
  67.   #endif
  68. #endif
  69. #ifndef BuildXInputExt
  70.   #define BuildXInputExt        NO
  71. #endif
  72. #ifndef BuildXInputLib
  73.   #define BuildXInputLib        YES
  74. #endif
  75. #ifndef InstallLibManPages
  76.   #define InstallLibManPages    YES
  77. #endif
  78. #ifndef InstallXtermSetUID
  79.   #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  80. #endif
  81. #ifndef InstallXinitConfig
  82.   #define InstallXinitConfig    NO    /* install sample xinit config */
  83. #endif
  84. #ifndef InstallXdmConfig
  85.   #define InstallXdmConfig    NO    /* install sample xdm config */
  86. #endif
  87. #ifndef XdmServersType            /* what Xservers files to use */
  88.   #if BuildServer
  89.     #define XdmServersType ws
  90.   #else
  91.     #define XdmServersType fs
  92.   #endif
  93. #endif
  94. #ifndef InstallFSConfig
  95.   #define InstallFSConfig        NO    /* install sample fs config */
  96. #endif
  97. #ifndef InstallAppDefFiles
  98.   #define InstallAppDefFiles    YES    /* install application defaults */
  99. #endif
  100. #ifndef DebugLibX
  101.   #define DebugLibX        NO    /* debugged X library */
  102. #endif
  103. #ifndef DebugLibXArchive
  104.   #define DebugLibXArchive    NO    /* archive file of above */
  105. #endif
  106. #ifndef ProfileLibX
  107.   #define ProfileLibX        NO    /* profiled X library */
  108. #endif
  109. #ifndef ProfileLibXArchive
  110.   #define ProfileLibXArchive    NO    /* archive file of above */
  111. #endif
  112. #ifndef DebugOldLibX
  113.   #define DebugOldLibX        NO    /* debugged old X library */
  114. #endif
  115. #ifndef ProfileOldLibX
  116.   #define ProfileOldLibX        NO    /* profiled old X library */
  117. #endif
  118. #ifndef DebugLibXt
  119.   #define DebugLibXt        NO    /* debugged toolkit library */
  120. #endif
  121. #ifndef ProfileLibXt
  122.   #define ProfileLibXt        NO    /* profiled toolkit library */
  123. #endif
  124. #ifndef DebugLibXaw
  125.   #define DebugLibXaw        NO    /* debugged widget library */
  126. #endif
  127. #ifndef ProfileLibXaw
  128.   #define ProfileLibXaw        NO    /* profiled widget library */
  129. #endif
  130. #ifndef DebugLibXext
  131.   #define DebugLibXext        NO    /* debugged Xext library */
  132. #endif
  133. #ifndef ProfileLibXext
  134.   #define ProfileLibXext        NO    /* profiled Xext library */
  135. #endif
  136. #ifndef DebugLibXmu
  137.   #define DebugLibXmu        NO    /* debugged Xmu library */
  138. #endif
  139. #ifndef ProfileLibXmu
  140.   #define ProfileLibXmu        NO    /* profiled Xmu library */
  141. #endif
  142. #ifndef DebugLibXau
  143.   #define DebugLibXau        NO    /* debugged auth library */
  144. #endif
  145. #ifndef ProfileLibXau
  146.   #define ProfileLibXau        NO    /* profiled auth library */
  147. #endif
  148. #ifndef DebugLibXdmcp
  149.   #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  150. #endif
  151. #ifndef ProfileLibXdmcp
  152.   #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  153. #endif
  154. #ifndef ManDirectoryRoot
  155.   #ifdef ProjectRoot
  156.     #define ManDirectoryRoot Concat(ProjectRoot,/man)
  157.     #ifndef XmanLocalSearchPath
  158.       #define XmanLocalSearchPath ManDirectoryRoot
  159.     #endif
  160.   #else
  161.     #if SystemV4
  162.       #define ManDirectoryRoot /usr/share/man
  163.     #else
  164.       #define ManDirectoryRoot /usr/man
  165.     #endif
  166.   #endif
  167. #endif
  168. #ifndef ManSuffix
  169.   #define ManSuffix    n        /* use just one tab or cpp will die */
  170. #endif
  171. #ifndef LibManSuffix
  172.   #define LibManSuffix    3        /* use just one tab or cpp will die */
  173. #endif
  174. #ifndef HasXdmAuth
  175.   #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  176. #endif
  177. #ifndef BDFTOSNFFILT
  178.   #define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\"
  179. #endif
  180. #ifndef SHELLPATH
  181. #define SHELLPATH -DSHELLPATH=\"/bin/sh\"
  182. #endif
  183. #ifndef ZBDFTOSNFFILT
  184. #define ZBDFTOSNFFILT -DZBDFTOSNFFILT=\"UNCOMPRESSPATH" | $(BINDIR)/bdftosnf $(FONTCFLAGS)\""
  185. #endif
  186. #ifndef FontFilters
  187. #define FontFilters BDFTOSNFFILT SHELLPATH ZBDFTOSNFFILT
  188. #endif
  189. #ifndef PrimaryScreenResolution
  190. #define PrimaryScreenResolution 72        /* a common resolution */
  191. #endif
  192. #ifndef DefaultFontPath
  193. #if PrimaryScreenResolution < 88        /* (75 + 100) / 2 */
  194. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
  195. #else
  196. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
  197. #endif
  198. #endif
  199. #ifndef DefaultRGBDatabase
  200. #define DefaultRGBDatabase $(LIBDIR)/rgb
  201. #endif
  202. #ifndef FontCompilerFlags
  203. #define FontCompilerFlags -t
  204. #endif
  205. #ifndef ConnectionFlags
  206. #if (SystemV || SystemV4) && !HasSockets
  207. #define ConnectionFlags -DSTREAMSCONN
  208. #else
  209. #ifdef sprite  
  210. #define ConnectionFlags -DTCPCONN -DSPRITEPDEVCONN
  211. #else
  212. #define ConnectionFlags -DTCPCONN -DUNIXCONN
  213. #endif  
  214. #endif
  215. #endif
  216. #ifndef FontOSDefines
  217. #define FontOSDefines /**/
  218. #endif
  219. #ifndef FontDefines
  220. #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
  221. #endif
  222. #ifndef ExtensionOSDefines
  223. #define ExtensionOSDefines /**/
  224. #endif
  225. #ifndef ExtensionDefines
  226. #ifndef PexDefines
  227. #if BuildPexExt
  228. #define PexDefines -DPEXEXT
  229. #else
  230. #define PexDefines /**/
  231. #endif
  232. #endif
  233. #ifndef ShmDefines
  234. #if HasShm
  235. #define ShmDefines -DMITSHM
  236. #else
  237. #define ShmDefines /**/
  238. #endif
  239. #endif
  240. #ifndef XInputDefines
  241. #if BuildXInputExt
  242. #define XInputDefines -DXINPUT
  243. #else
  244. #define XInputDefines /**/
  245. #endif
  246. #endif
  247. #ifndef BaseExtensionDefines
  248. #define BaseExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC PexDefines ShmDefines XInputDefines
  249. #endif
  250. #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
  251. #endif
  252. #ifndef ServerExtraDefines
  253. #define ServerExtraDefines -DXDMCP
  254. #endif
  255. #ifndef ServerOSDefines
  256. #define ServerOSDefines /**/
  257. #endif
  258. #ifndef ServerDefines
  259. #define ServerDefines StandardDefines ServerExtraDefines ExtensionDefines ServerOSDefines
  260. #endif
  261. #ifndef PexDipexDefines
  262. #define PexDipexDefines /**/
  263. #endif
  264. #ifndef PexDdpexDefines
  265. #define PexDdpexDefines /**/
  266. #endif
  267. #ifndef PexPhigsDefines
  268. #ifndef PexShmIPC
  269. #define PexShmIPC HasShm
  270. #endif
  271. #if PexShmIPC
  272. #define PexPhigsDefines /**/
  273. #else
  274. #define PexPhigsDefines -DPEX_API_SOCKET_IPC
  275. #endif
  276. #endif
  277. #ifndef PexClientDefines
  278. #define PexClientDefines -DPEX_SI_PHIGS
  279. #endif
  280. #ifndef PhigsInclude
  281. #ifdef UseInstalled
  282. #define PhigsInclude -I$(INCDIR)
  283. #else
  284. #define PhigsInclude -I$(BUILDINCDIR)
  285. #endif
  286. #endif
  287. #ifndef PexCDebugFlags
  288. #define PexCDebugFlags DebuggableCDebugFlags
  289. #endif
  290. #ifndef PexCCOptions
  291. #ifdef LibraryCCOptions
  292. #define PexCCOptions LibraryCCOptions
  293. #else
  294. #define PexCCOptions DefaultCCOptions
  295. #endif
  296. #endif
  297. #ifndef DefaultFSConfigFile
  298. #define DefaultFSConfigFile $(LIBDIR)/fs/config
  299. #endif
  300. #ifndef BinDir
  301. #ifdef ProjectRoot
  302. #define BinDir Concat(ProjectRoot,/bin)
  303. #else
  304. #define BinDir /usr/bin/X11
  305. #endif
  306. #endif
  307. #ifndef BuildIncRoot
  308. #define BuildIncRoot $(TOP)
  309. #endif
  310. #ifndef BuildIncTop
  311. #define BuildIncTop ..        /* relative to $(TOP)/X11 */
  312. #endif
  313. #ifndef LibDir
  314. #define LibDir $(USRLIBDIR)/X11
  315. #endif
  316. #ifndef ConfigDir
  317. #define ConfigDir $(LIBDIR)/config
  318. #endif
  319. #ifndef LintlibDir
  320. #define LintlibDir $(USRLIBDIR)/lint
  321. #endif
  322. #ifndef FontDir
  323. #define FontDir $(LIBDIR)/fonts
  324. #endif
  325. #ifndef AdmDir
  326. #define AdmDir /usr/adm
  327. #endif
  328. #ifndef XinitDir
  329. #define XinitDir $(LIBDIR)/xinit
  330. #endif
  331. #ifndef XdmDir
  332. #define XdmDir $(LIBDIR)/xdm
  333. #endif
  334. #ifndef XdmConfigurationSubdirectory        /* under xdm sources */
  335. #define XdmConfigurationSubdirectory config
  336. #endif
  337. #ifndef TwmDir
  338. #define TwmDir $(LIBDIR)/twm
  339. #endif
  340. #ifndef ManPath
  341. #define ManPath ManDirectoryRoot
  342. #endif
  343. #ifndef ManSourcePath
  344. #define ManSourcePath $(MANPATH)/man
  345. #endif
  346. #ifndef ManDir
  347. #define ManDir $(MANSOURCEPATH)$(MANSUFFIX)
  348. #endif
  349. #ifndef LibmanDir
  350. #define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX)
  351. #endif
  352. #ifndef NlsDir
  353. #define NlsDir $(LIBDIR)/nls
  354. #endif
  355. #ifndef PexApiDir
  356. #define PexApiDir $(LIBDIR)/PEX
  357. #endif
  358. #ifndef XFileSearchPathBase
  359. #define XFileSearchPathBase $(LIBDIR)/%L/%T/%N%C%S:$(LIBDIR)/%l/%T/%N%C%S:$(LIBDIR)/%T/%N%C%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S
  360. #endif
  361. #ifndef XFileSearchPathDefault
  362. #ifdef XAppLoadDir
  363. #define XFileSearchPathDefault XAppLoadDir/%N%C%S:XAppLoadDir/%N%S:XFileSearchPathBase
  364. #else
  365. #define XFileSearchPathDefault XFileSearchPathBase
  366. #endif
  367. #endif
  368. #ifndef XAppLoadDir
  369. #define XAppLoadDir $(LIBDIR)/app-defaults
  370. #endif
  371. #ifndef XtErrorPrefix
  372. #define XtErrorPrefix /* as empty string */
  373. #endif
  374. #ifndef XtWarningPrefix
  375. #define XtWarningPrefix /* as empty string */
  376. #endif
  377. #ifndef OsNameDefines
  378. #define OsNameDefines /* as nothing */
  379. #endif
  380. #ifndef DefaultUserPath            /* for xdm */
  381. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
  382. #endif
  383. #ifndef DefaultSystemPath        /* for xdm */
  384. #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
  385. #endif
  386. #ifndef DefaultSystemShell        /* for xdm to set in SHELL */
  387. #define DefaultSystemShell BourneShell
  388. #endif
  389. #ifndef UseCCMakeDepend            /* use slow cc -E script */
  390. #define UseCCMakeDepend NO
  391. #endif
  392. #ifndef DependDir
  393. #if UseCCMakeDepend
  394. #define DependDir $(SCRIPTSRC)
  395. #else
  396. #define DependDir $(UTILSRC)/makedepend
  397. #endif
  398. #endif
  399. #ifndef ContribDir
  400. #define ContribDir $(TOP)/../contrib    /* contrib is outside core tree */
  401. #endif
  402. #ifndef DependCmd
  403. #define DependCmd $(DEPENDSRC)/makedepend
  404. #endif
  405. #ifndef RemoveTargetProgramByMoving
  406. #define RemoveTargetProgramByMoving NO
  407. #endif
  408. #ifndef AllocateLocalDefines
  409. #define AllocateLocalDefines /**/
  410. #endif
  411.  
  412. #ifndef ForceNormalLib
  413. #define ForceNormalLib (HasSaberC | HasGcc)
  414. #endif
  415. #ifndef SharedLibX
  416. #define SharedLibX HasSharedLibraries
  417. #endif
  418. #ifndef NormalLibX
  419. #define NormalLibX (!SharedLibX | ForceNormalLib)
  420. #endif
  421. #ifndef SharedOldLibX
  422. #define SharedOldLibX HasSharedLibraries
  423. #endif
  424. #ifndef NormalOldLibX
  425. #define NormalOldLibX (!SharedOldLibX | ForceNormalLib)
  426. #endif
  427. #ifndef SharedLibXt
  428. #define SharedLibXt HasSharedLibraries
  429. #endif
  430. #ifndef NormalLibXt
  431. #define NormalLibXt (!SharedLibXt | ForceNormalLib)
  432. #endif
  433. #ifndef SharedLibXaw
  434. #define SharedLibXaw HasSharedLibraries
  435. #endif
  436. #ifndef NormalLibXaw
  437. #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
  438. #endif
  439. #ifndef SharedLibXmu
  440. #define SharedLibXmu HasSharedLibraries
  441. #endif
  442. #ifndef NormalLibXmu
  443. #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
  444. #endif
  445. #ifndef SharedLibXau
  446. #define SharedLibXau NO        /* don't need shared form */
  447. #endif
  448. #ifndef NormalLibXau
  449. #define NormalLibXau (!SharedLibXau | ForceNormalLib)
  450. #endif
  451. #ifndef SharedLibXdmcp
  452. #define SharedLibXdmcp NO    /* don't need shared form */
  453. #endif
  454. #ifndef NormalLibXdmcp
  455. #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
  456. #endif
  457. #ifndef SharedLibXext
  458. #define SharedLibXext HasSharedLibraries
  459. #endif
  460. #ifndef NormalLibXext
  461. #define NormalLibXext (!SharedLibXext | ForceNormalLib)
  462. #endif
  463. #ifndef SharedLibXinput
  464. #define SharedLibXinput HasSharedLibraries
  465. #endif
  466. #ifndef NormalLibXinput
  467. #define NormalLibXinput (!SharedLibXinput | ForceNormalLib)
  468. #endif
  469. #ifndef SharedLibPhigs
  470. #define SharedLibPhigs NO    /* XXX - haven't made it sharable yet */
  471. #endif
  472. #ifndef NormalLibPhigs
  473. #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
  474. #endif
  475.  
  476.  
  477. #ifndef DoInstallExtensionsIntoXlib
  478. #define DoInstallExtensionsIntoXlib NO    /* merge libXext.a into libX11.a */
  479. #endif
  480.  
  481. XCOMM -------------------------------------------------------------------------
  482. XCOMM X Window System make variables; this need to be coordinated with rules
  483.  
  484. /*
  485.  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
  486.  * Makefile.
  487.  */
  488.           PATHSEP = /            /* for building filenames */
  489.         USRLIBDIR = UsrLibDir        /* libraries */
  490.            BINDIR = BinDir        /* programs */
  491.           INCROOT = IncRoot        /* base of where to put header files */
  492.      BUILDINCROOT = BuildIncRoot    /* base of build loc */
  493.       BUILDINCDIR = $(BUILDINCROOT)/X11
  494.       BUILDINCTOP = BuildIncTop        /* top relative to BUILDINCDIR */
  495.            INCDIR = $(INCROOT)/X11    /* header files, must end in X11 */
  496.            ADMDIR = AdmDir        /* server log files */
  497.            LIBDIR = LibDir        /* rgb, XErrorDB, etc. */
  498.         CONFIGDIR = ConfigDir        /* build configuration information */
  499.        LINTLIBDIR = LintlibDir        /* lint libraries */
  500.  
  501.           FONTDIR = FontDir        /* font directories */
  502.          XINITDIR = XinitDir        /* xinit config files */
  503.            XDMDIR = XdmDir        /* xdm config files */
  504.            TWMDIR = TwmDir        /* twm config files */
  505.           MANPATH = ManPath        /* top of manual page tree */
  506.     MANSOURCEPATH = ManSourcePath    /* prefix for man page sources */
  507.         MANSUFFIX = ManSuffix        /* suffix for man pages */
  508.      LIBMANSUFFIX = LibManSuffix    /* suffix for library man pages */
  509.            MANDIR = ManDir        /* man pages for commands */
  510.         LIBMANDIR = LibmanDir        /* man pages for library routines */
  511.            NLSDIR = NlsDir        /* nls files */
  512.         PEXAPIDIR = PexApiDir        /* PEX support files */
  513.       XAPPLOADDIR = XAppLoadDir        /* application default resource dir */
  514.        FONTCFLAGS = FontCompilerFlags
  515.  
  516.      INSTAPPFLAGS = $(INSTDATFLAGS)    /* XXX - this should go away - XXX */
  517.  
  518. #ifdef UseInstalled
  519.             IMAKE = imake        /* assume BINDIR in path */
  520.            DEPEND = makedepend        /* assume BINDIR in path */
  521.               RGB = rgb            /* assume BINDIR in path */
  522. #ifdef SnfFonts
  523.             FONTC = bdftosnf        /* assume BINDIR in path */
  524. #else
  525.             FONTC = bdftopcf        /* assume BINDIR in path */
  526. #endif
  527.         MKFONTDIR = mkfontdir        /* assume BINDIR in path */
  528.         MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
  529. #else
  530.             IMAKE = $(IMAKESRC)/imake
  531.            DEPEND = DependCmd
  532.               RGB = $(RGBSRC)/rgb
  533. #ifdef SnfFonts
  534.             FONTC = $(BDFTOSNFSRC)/bdftosnf
  535. #else
  536.             FONTC = $(BDFTOPCFSRC)/bdftopcf
  537. #endif
  538.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  539.         MKDIRHIER = BourneShell $(SCRIPTSRC)/mkdirhier.sh
  540. #endif
  541.  
  542.         CONFIGSRC = $(TOP)/config
  543.        DOCUTILSRC = $(TOP)/doc/util
  544.         CLIENTSRC = $(TOP)/clients
  545.           DEMOSRC = $(TOP)/demos
  546.            LIBSRC = $(TOP)/lib
  547.           FONTSRC = $(TOP)/fonts
  548.        INCLUDESRC = $(TOP)/X11
  549.         SERVERSRC = $(TOP)/server
  550.           UTILSRC = $(TOP)/util
  551.         SCRIPTSRC = $(UTILSRC)/scripts
  552.        EXAMPLESRC = $(TOP)/examples
  553.        CONTRIBSRC = ContribDir
  554.            DOCSRC = $(TOP)/doc
  555.            RGBSRC = $(TOP)/rgb
  556.         DEPENDSRC = DependDir
  557.          IMAKESRC = $(CONFIGSRC)
  558.          XAUTHSRC = $(LIBSRC)/Xau
  559.           XLIBSRC = $(LIBSRC)/X
  560.            XMUSRC = $(LIBSRC)/Xmu
  561.        TOOLKITSRC = $(LIBSRC)/Xt
  562.        AWIDGETSRC = $(LIBSRC)/Xaw
  563.        OLDXLIBSRC = $(LIBSRC)/oldX
  564.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  565.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  566.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  567.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  568.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  569.          FSLIBSRC = $(FONTSRC)/lib/fs
  570.     FONTSERVERSRC = $(FONTSRC)/server
  571.      EXTENSIONSRC = $(TOP)/extensions
  572.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  573.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  574.  
  575. /*
  576.  * _Use - makes a choice based on UseInstalled.
  577.  */
  578. #ifndef _Use
  579. #ifdef UseInstalled
  580. #define _Use(a,b) a
  581. #else
  582. #define _Use(a,b) b
  583. #endif
  584. #endif
  585.  
  586. /*
  587.  * _UseCat - combination of _Use and Concat.
  588.  *           exists to avoid problems with some preprocessors
  589.  */
  590. #ifndef _UseCat
  591. #if __STDC__ && !defined(UnixCpp)
  592. #ifdef UseInstalled
  593. #define _UseCat(a,b,c) a##c
  594. #else
  595. #define _UseCat(a,b,c) b##c
  596. #endif
  597. #else
  598. #ifdef UseInstalled
  599. #define _UseCat(a,b,c) a/**/c
  600. #else
  601. #define _UseCat(a,b,c) b/**/c
  602. #endif
  603. #endif
  604. #endif
  605.  
  606. #ifndef ShLibIncludeFile
  607. /* need this to make ANSI-style proprocessors happy */
  608. #define ShLibIncludeFile <noop.rules>
  609. #endif
  610.  
  611. #include ShLibIncludeFile
  612.  
  613. #if HasSharedLibraries
  614.         SOXLIBREV = SharedXlibRev
  615.           SOXTREV = SharedXtRev
  616.          SOXAWREV = SharedXawRev
  617.         SOOLDXREV = SharedOldXRev
  618.          SOXMUREV = SharedXmuRev
  619.         SOXEXTREV = SharedXextRev
  620.       SOXINPUTREV = SharedXinputRev
  621. #endif
  622.  
  623. #if !SharedLibXext
  624.   DEPEXTENSIONLIB = _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.a)
  625.      EXTENSIONLIB = LoaderLibPrefix _Use(-lXext, $(DEPEXTENSIONLIB))
  626. #endif
  627. #if !SharedLibX
  628.           DEPXLIB = $(DEPEXTENSIONLIB) _UseCat($(USRLIBDIR),$(XLIBSRC),/libX11.a)
  629.              XLIB = $(EXTENSIONLIB) LoaderLibPrefix _Use(-lX11,$(XLIBSRC)/libX11.a)
  630. #endif
  631.       DEPXAUTHLIB = _UseCat($(USRLIBDIR),$(XAUTHSRC),/libXau.a)
  632.          XAUTHLIB = LoaderLibPrefix _Use(-lXau,$(DEPXAUTHLIB))
  633.       DEPXDMCPLIB = _UseCat($(USRLIBDIR),$(XDMCPLIBSRC),/libXdmcp.a)
  634.          XDMCPLIB = LoaderLibPrefix _Use(-lXdmcp,$(DEPXDMCPLIB))
  635. #if !SharedLibXmu
  636.         DEPXMULIB = _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.a)
  637.            XMULIB = LoaderLibPrefix _Use(-lXmu,$(DEPXMULIB))
  638. #endif
  639. #if !SharedOldLibX
  640.        DEPOLDXLIB = _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.a)
  641.           OLDXLIB = LoaderLibPrefix _Use(-loldX,$(DEPOLDXLIB))
  642. #endif
  643. #if !SharedLibXt
  644.       DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
  645.          XTOOLLIB = LoaderLibPrefix _Use(-lXt,$(DEPXTOOLLIB))
  646. #endif
  647. #if !SharedLibXaw
  648.         DEPXAWLIB = _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.a)
  649.            XAWLIB = LoaderLibPrefix _Use(-lXaw,$(DEPXAWLIB))
  650. #endif
  651. #if !SharedLibXinput
  652.         DEPXILIB = _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.a)
  653.            XILIB = LoaderLibPrefix _Use(-lXi,$(DEPXILIB))
  654. #endif
  655. #if !SharedLibPhigs
  656.         DEPPHIGSLIB = _UseCat($(USRLIBDIR),$(PHIGSLIBSRC),/libphigs.a)
  657.            PHIGSLIB = LoaderLibPrefix _Use(-lphigs,$(DEPPHIGSLIB))
  658. #endif
  659.        DEPXBSDLIB = _UseCat($(USRLIBDIR),$(LIBSRC)/Berk,/libXbsd.a)
  660.           XBSDLIB = LoaderLibPrefix _Use(-lXbsd,$(DEPXBSDLIB))
  661.  
  662.  LINTEXTENSIONLIB = _UseCat($(LINTLIBDIR),$(EXTENSIONSRC)/lib,/llib-lXext.ln)
  663.          LINTXLIB = _UseCat($(LINTLIBDIR),$(XLIBSRC),/llib-lX11.ln)
  664.           LINTXMU = _UseCat($(LINTLIBDIR),$(XMUSRC),/llib-lXmu.ln)
  665.         LINTXTOOL = _UseCat($(LINTLIBDIR),$(TOOLKITSRC),/llib-lXt.ln)
  666.           LINTXAW = _UseCat($(LINTLIBDIR),$(AWIDGETSRC),/llib-lXaw.ln)
  667.            LINTXI = _UseCat($(LINTLIBDIR),$(XILIBSRC),/llib-lXi.ln)
  668.         LINTPHIGS = _UseCat($(LINTLIBDIR),$(PHIGSLIBSRC),/llib-lphigs.ln)
  669.  
  670. #ifndef XawClientDepLibs
  671. #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  672. #endif
  673. #ifndef XawClientLibs
  674. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  675. #endif
  676.  
  677. #ifndef NeedDefaultDepLibs
  678. #define NeedDefaultDepLibs YES
  679. #endif
  680.  
  681. #if NeedDefaultDepLibs
  682. /*
  683.  * Individual libraries should override this
  684.  */
  685. #if HasSharedLibraries || UseInstalled
  686.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  687. #else
  688.           DEPLIBS = $(LOCAL_LIBRARIES)
  689. #endif
  690.          DEPLIBS1 = $(DEPLIBS)
  691.          DEPLIBS2 = $(DEPLIBS)
  692.          DEPLIBS3 = $(DEPLIBS)
  693. #endif /* NeedDefaultDepLibs */
  694. @
  695.  
  696.  
  697. 1.1
  698. log
  699. @Initial revision
  700. @
  701. text
  702. @d20 1
  703. a20 1
  704. #define BuildServer        YES
  705. d23 1
  706. a23 1
  707. #define BuildFonts        BuildServer
  708. d26 1
  709. a26 1
  710. #define BuildFontServer        BuildServer
  711. d29 1
  712. a29 1
  713. #define BuildPex        YES
  714. d32 1
  715. a32 1
  716. #define BuildPexClients        BuildPex
  717. d35 5
  718. a39 5
  719. #if BuildServer
  720. #define BuildPexExt        BuildPex
  721. #else
  722. #define BuildPexExt        NO
  723. #endif
  724. d42 1
  725. a42 1
  726. #define BuildXInputExt        NO
  727. d45 1
  728. a45 1
  729. #define BuildXInputLib        YES
  730. d48 1
  731. a48 1
  732. #define InstallLibManPages    YES
  733. d51 1
  734. a51 1
  735. #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  736. d54 1
  737. a54 1
  738. #define InstallXinitConfig    NO    /* install sample xinit config */
  739. d57 1
  740. a57 1
  741. #define InstallXdmConfig    NO    /* install sample xdm config */
  742. d60 5
  743. a64 4
  744. #if BuildServer
  745. #define XdmServersType ws
  746. #else
  747. #define XdmServersType fs
  748. a65 1
  749. #endif
  750. d67 1
  751. a67 1
  752. #define InstallFSConfig        NO    /* install sample fs config */
  753. d70 1
  754. a70 1
  755. #define InstallAppDefFiles    YES    /* install application defaults */
  756. d73 1
  757. a73 1
  758. #define DebugLibX        NO    /* debugged X library */
  759. d76 1
  760. a76 1
  761. #define DebugLibXArchive    NO    /* archive file of above */
  762. d79 1
  763. a79 1
  764. #define ProfileLibX        NO    /* profiled X library */
  765. d82 1
  766. a82 1
  767. #define ProfileLibXArchive    NO    /* archive file of above */
  768. d85 1
  769. a85 1
  770. #define DebugOldLibX        NO    /* debugged old X library */
  771. d88 1
  772. a88 1
  773. #define ProfileOldLibX        NO    /* profiled old X library */
  774. d91 1
  775. a91 1
  776. #define DebugLibXt        NO    /* debugged toolkit library */
  777. d94 1
  778. a94 1
  779. #define ProfileLibXt        NO    /* profiled toolkit library */
  780. d97 1
  781. a97 1
  782. #define DebugLibXaw        NO    /* debugged widget library */
  783. d100 1
  784. a100 1
  785. #define ProfileLibXaw        NO    /* profiled widget library */
  786. d103 1
  787. a103 1
  788. #define DebugLibXext        NO    /* debugged Xext library */
  789. d106 1
  790. a106 1
  791. #define ProfileLibXext        NO    /* profiled Xext library */
  792. d109 1
  793. a109 1
  794. #define DebugLibXmu        NO    /* debugged Xmu library */
  795. d112 1
  796. a112 1
  797. #define ProfileLibXmu        NO    /* profiled Xmu library */
  798. d115 1
  799. a115 1
  800. #define DebugLibXau        NO    /* debugged auth library */
  801. d118 1
  802. a118 1
  803. #define ProfileLibXau        NO    /* profiled auth library */
  804. d121 1
  805. a121 1
  806. #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  807. d124 1
  808. a124 1
  809. #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  810. d127 12
  811. a138 11
  812. #ifdef ProjectRoot
  813. #define ManDirectoryRoot Concat(ProjectRoot,/man)
  814. #ifndef XmanLocalSearchPath
  815. #define XmanLocalSearchPath ManDirectoryRoot
  816. #endif
  817. #else
  818. #if SystemV4
  819. #define ManDirectoryRoot /usr/share/man
  820. #else
  821. #define ManDirectoryRoot /usr/man
  822. #endif
  823. a139 1
  824. #endif
  825. d141 1
  826. a141 1
  827. #define ManSuffix    n        /* use just one tab or cpp will die */
  828. d144 1
  829. a144 1
  830. #define LibManSuffix    3        /* use just one tab or cpp will die */
  831. d147 1
  832. a147 1
  833. #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  834. d150 1
  835. a150 1
  836. #define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\"
  837. d181 3
  838. d185 1
  839. @
  840.